<?xml version="1.0" encoding="UTF-8"?>
<%@page contentType="text/xml" %>
<%@page import="com.general.genericUtils.BuildExceptionTrace"%>
<%@page import="com.spring.BusinessComponents.DoTransaction"%><%@page import="org.springframework.context.support.ClassPathXmlApplicationContext"%>
<% int forumCount=0; int roomMateCount=0;
ClassPathXmlApplicationContext ctx = (ClassPathXmlApplicationContext)getServletContext().getAttribute("ctx");
DoTransaction doTransaction = (DoTransaction)ctx.getBean("doTransaction");
		try{
			forumCount = doTransaction.countForumData();
			System.out.println("Forum Count "+ forumCount);
			roomMateCount = doTransaction.countPlaceMyAdsData();
			System.out.println("RoomMate Count "+ roomMateCount);
		}
		catch (Exception e) {
			doTransaction.saveException(BuildExceptionTrace.buildAndGiveExceptionTrace(e));
		}
%>
<counts>
<forumCount>
	<%= forumCount%>
</forumCount>
<rommateCount>
	<%= roomMateCount%>
</rommateCount>
</counts>